package cn.sxt.broker;

import org.apache.activemq.broker.BrokerService;

/**
 * @author Mxb
 * @version 1.0
 * @date 2020/8/7 12:24
 */
public class EmbedBroker {
    public static void main(String[] args) throws Exception {
        // ActiveMQ 支持在VM中通信基于嵌入式 broker
        BrokerService brokerService = new BrokerService();
        brokerService.setUseJmx(true);
        brokerService.addConnector("tcp://localhost:61616");
        brokerService.start();
    }
}
